﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Enterprise.Management.Data;
using Enterprise.Management.ViewModels;
using Enterprise.Management.Caches;

namespace Enterprise.Management.Business
{
    public class DependencyBranchBLL : BaseBLL
    {
        public DP_Local_Info Get(int ctgrID)
        {
            return DataContext.DP_Local_Info.FirstOrDefault(m => m.LclInf_CtgrID == ctgrID);
        }

        public bool Add(DP_Local_Info dp_local_info)
        {
            DataContext.DP_Local_Info.InsertOnSubmit(dp_local_info);
            return Submit();
        }

        public bool Update(DP_Local_Info dp_local_info)
        {
            return Submit();
        }
    }
}